cs-invoice-processing-sapi
o6a-urj/π Data Dictionary - CS Utilities System API Service
This section describes the attributes and usage of the Invoice Processing API Service.
ποΈ Base Information
- API Title: Invoice Processing API Service
- Version: v1
- Base URL:
https://cs-invoice-processing-sapi-{env}-v1.us-e1.cloudhub.io/api/
Replace{env}
with:dev
(Development)qa
(Quality Assurance)
π Authentication
Required Headers
Header | Type | Description |
---|---|---|
Authorization | String | Bearer token in the format Bearer {{API_KEY}} |
client_id | String | Unique identifier for API clients |
- Authorization
- Length: 36 - 37 characters
- Example:
Bearer abcdefghijklmnopqrstuvwxyz1234567890
- client_id
- Length: 32 - 36 characters
- Example:
123e4567-e89b-12d3-a456-426614174000
π These headers are required in all requests.
π Endpoints
π GET /documents/pending
Returns the unique identifiers of the documents that are pending sending to the ERP.
Query Parameters
Name | Type | Required | Description |
---|---|---|---|
customerTaxID | String | β | Tax ID of the receiving company |
documentTypeCode | String | β | Type of document to retrieve |
Response
Returns a list of document identifiers.
π Example: examples/responses/get-pendingDocuments.json
π GET /documents/returnDocuments
Returns an invoiceβs data structure in XML format.
Query Parameters
Name | Type | Required | Description |
---|---|---|---|
customerTaxID | String | β | Receiving company ID |
idInvoice | Number | β | Invoice identifier |
filingNumber | String | β | Document filing number |
Response
Returns a document's full structure.
π Example: examples/responses/get-documents.json
π GET /documents/attachments
Returns the files provided by the supplier for processing the invoice.
Query Parameters
Name | Type | Required | Description |
---|---|---|---|
customerTaxID | String | β | Receiving company ID |
idInvoice | Number | β | Invoice identifier |
filingNumber | String | β | Document filing number |
Response
π Example: examples/responses/get-attachments.json
π POST /documents/processed
Marks the document as processed by the ERP.
Request Body
π Example: examples/requests/post-processed.json
π Type: lib-types.post-processed
Response
π Example: examples/responses/post-processed.json
π Type: lib-types.post-processed-response
π POST /documents/status
Updates the status of an invoice after delivery to the ERP.
Request / Response
π Request: examples/requests/post-status.json
π Response: examples/responses/post-status.json
π Type: lib-types.post-status
π POST /documents/suppliers
Creates suppliers in Invoway.
Request / Response
π Request: examples/requests/post-suppliers.json
π Response: examples/responses/post-suppliers.json
π Type: lib-types.post-suppliers
π POST /suppliers/externalUser
Creates a user for a supplier using external authentication.
Request / Response
π Request: examples/requests/post-suppliers-externalUser.json
π Response: examples/responses/post-suppliers-externalUser.json
π GET /digital-wallets/send-payments-orders
Sends payment orders.
Query Parameters
Name | Type | Required | Description |
---|---|---|---|
markToSend | Integer | β | Indicates documents to be sent |
π Response: examples/responses/get-send-payments-orders.json
π Type: lib-types.get-send-payments-orders-response
π POST /digital-wallets/receive-payments-orders
Receives the result of processed payment orders from digital wallets.
π Request: examples/requests/post-receive-payments-orders.json
π Response: examples/responses/post-receive-payments-orders.json
π Type: lib-types.post-receive-payments-orders
π Common Parameters
Parameter | Type | Description | Required |
---|---|---|---|
client_id | String | API client identifier | β |
Authorization | String | Bearer token for authentication | β |
π Security Schemes
Client ID Enforcement
Field | Type | Required | Length | Regex |
---|---|---|---|---|
client_id | String | Yes | 32 - 36 | [a-zA-Z0-9] |
client_secret | String | Yes | 32 - 64 | [a-zA-Z0-9] |
OAuth 2.0
Field | Type | Required | Length | Regex |
---|---|---|---|---|
Authorization | String | Yes | 36 - 37 | [a-zA-Z0-9-_.] |
β οΈ Error Codes
Code | Description | Suggested Solution |
---|---|---|
400 | Bad Request | Check request syntax and parameters. |
401 | Unauthorized | Validate authentication credentials. |
404 | Not Found | Confirm the endpoint URL. |
500 | Internal Server Error | Retry or contact technical support. |
β οΈ Error Codes
Code | Description | Suggested Solution |
---|---|---|
400 | Bad Request | Check request syntax and parameters. |
401 | Unauthorized | Validate authentication credentials. |
404 | Not Found | Confirm the endpoint URL. |
500 | Internal Server Error | Retry or contact technical support. |
π Support
For assistance, contact the Integration Services and Applications Coordination team.
Email: epalma@fg
Last updated: April 2025